//
// Created by zcxsy on 2020/2/25.
//

#pragma warning(push, 0)
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#pragma warning(pop)

void defaultOnWindowSizeChanged(struct GLFWwindow *window, int width, int height) {
    glViewport(0, 0, width, height);
}

void setOnWindowSizeChanged(struct GLFWwindow *window,
        void (*handler)(struct GLFWwindow *, int, int)) {
    glfwSetFramebufferSizeCallback(window, handler);
}
